/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.utils;


import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName 〈StatusColorUtil>
 * @Description
 * @Author 朱永波
 * @Date 2017/11/30 14:47
 */
public class StatusColorUtil {
    
    private static Map<String, String> colorMap = null;

    public static String getColor(String code) {
        return getColorMap().get(code);
    }
    
    
    private static Map<String, String> getColorMap() {
        if (null == colorMap) {
            colorMap = new HashMap<>();
//            标签6种颜色：默认为深蓝色、绿色label-green、蓝色label-blue、红色label-red、黄色label-yellow、灰色label-gray
            //商机状态
            colorMap.put("BUS_NEW","gray");//新建
            colorMap.put("BUS_WAIT_FOLLOW","blue");//待跟进
            colorMap.put("BUS_FOLLOWING","green");//跟进中
            colorMap.put("BUS_SIGNED","yellow");//签单
            colorMap.put("BUS_SUCCESED","green");//成单
            colorMap.put("BUS_ORDER_BACK","red");//退单
            //商机阶段
            colorMap.put("BUS_STAGE_0","green");//首电
            colorMap.put("BUS_STAGE_1","blue");//咨询
            colorMap.put("BUS_STAGE_2","blue");//犹豫
            colorMap.put("BUS_STAGE_3","blue");//意向
            colorMap.put("BUS_STAGE_4","yellow");//上门未签单
            colorMap.put("BUS_STAGE_5","green");//已签单
            //订单状态
            colorMap.put("ORF_DDZT_1","blue");//待下单
            colorMap.put("ORF_DDZT_2","yellow");//已下单
            colorMap.put("ORF_DDZT_3","red");//退单/退款
            colorMap.put("ORF_DDZT_4","yellow");//生产中
            colorMap.put("ORF_DDZT_5","green");//完成
            colorMap.put("ORF_DDZT_6","green");//已成单
            colorMap.put("ORF_DDZT_8","blue");//下单待审核
            colorMap.put("ORF_DDZT_9","red");//审核驳回

        }
        return colorMap;
    }
}
